package com.lg.cms.controller.admin.template;

import com.lg.cms.entity.SuperUser;
import com.lg.cms.utils.SubjectUtil;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: 模板管理
 * @Author: wuyuhang
 * @create: 2020-10-06 08:10
 */
@Controller
@RequestMapping("/admin/template")
public class TemplateController {

    @GetMapping("/list")
    public String index(Model model, HttpServletRequest request){
        model.addAttribute("user", SubjectUtil.getSuperUser());
        model.addAttribute("request", request);
//        model.addAttribute("basePath", "/t/default/");
        return "admin/wyh-test/template/template_list";
    }
}